<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">

    <title>My JSP 'planRecent.jsp' starting page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<jsp:include page="../index.jsp"></jsp:include>
  </head>

  <body>
  	<h4>[ 今月休暇]</h4>
  	<s:if test="%{#request.planlist.size() != 0}">
  	<table>
  	<tbody>
  	<tr>
  		<td align="center" style="width: 200; background-color: efefef;">시작일</td>
  		<td align="center" style="width: 200; background-color: efefef;">종료일</td>
  		<td align="center" style="width: 150; background-color: efefef;">제목</td>
  	</tr>
  	<s:iterator value="planlist">
  	<tr>
  		<td align="center">
  		<s:property value="startdate"></s:property>
  		</td>
  		<td align="center">
  		<s:property value="enddate"></s:property>
  		</td>
  		<td align="center">
  		<a href="<s:url value="/plan/planRead.action?num="/><s:property value="num"/>"><s:property value="title"></s:property></a>
  		</td>
  	</tr>
  	</s:iterator>
  	</tbody>
  	</table>
    </s:if>
    <s:else><h5>申請休暇がありません</h5></s:else>
  </body>
</html>
